<?php
// +----------------------------------------------------------------------
// | Created by PhpStorm
// +----------------------------------------------------------------------
// | Date: 2020/6/22 10:31
// +----------------------------------------------------------------------
// | Use : 说明用途，主要方面！
// +----------------------------------------------------------------------
// | Author: Freedom <961449954@qq.com>
// +----------------------------------------------------------------------
namespace app\admin\controller\user;

use app\common\controller\AdminController;
use think\App;


class VipAdmin extends AdminController{

    
    public function __construct(App $app)
    {
        parent::__construct($app);
        $this->model = app('app\common\model\user\WxUsers');
        $this->filed = 'id,avatar_url,nick_name,phone,create_time,update_time';

    }

    /**
     *手机号、昵称查询
     */
    public function get_where($arr=[]){
        $array=[];
        if(!empty($arr['phone'])){
            $array[] = ['phone','like','%'.$arr['phone'].'%'];
        }
        if(!empty($arr['nick_name'])){
            $array[] = ['nick_name','like','%'.$arr['nick_name'].'%'];
        }
        return $array;
    }

}